package com.bwda.dsrs.systemservice.service.impl;

import com.bwda.dsrs.systemservice.domain.po.notify.NotifyPo;
import com.bwda.dsrs.systemservice.domain.condition.notify.NotifyCondition;
import com.bwda.dsrs.systemservice.mapper.NotifyMapper;
import com.bwda.dsrs.systemservice.service.NotifyService;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 系统消息接口实现类
 *
 * @author yanyuemei
 * @date 2019/4/27
 */
@Service
public class NotifyServiceImpl extends AbstractBaseServiceImpl<NotifyPo, NotifyCondition, NotifyMapper> implements NotifyService {
    @Override
    public void delete(NotifyPo notifyPo){
        this.update(notifyPo);
    }

    @Override
    public NotifyPo queryLastNotify() {
        return this.getMapper().queryLastNotify();
    }
}